package cn.guet.tourism.base;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 基础Model
 *
 * @param <T>
 * @see Model
 * @author SAGITTAR
 */
public abstract class AbstractModel<T extends AbstractModel<T>> extends Model<T> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@Override
	public Serializable pkVal() {
		return id;
	}
}
